package com.monitor.service.impl;

import com.monitor.dao.ContactDao;
import com.monitor.po.Contact;
import com.monitor.service.ContactService;
import com.monitor.util.Pager;

public class ContactServiceImpl implements ContactService {
	private ContactDao contactDao;

	@Override
	public Pager<Contact> getContactListByUid(long uid, int pageSize, int currentPage) throws Exception {
		return contactDao.getContactByUid(uid, pageSize, currentPage);
	}

	@Override
	public boolean deleteContact(long uid, String cid) throws Exception {
		return contactDao.deleteContact(uid, cid) > 0;
	}
	public ContactDao getContactDao() {
		return contactDao;
	}

	public void setContactDao(ContactDao contactDao) {
		this.contactDao = contactDao;
	}

}
